FROM openjdk:8-jdk-alpine
MAINTAINER xuwenfeng
WORKDIR /srv/app
ADD ./target/avocado-cloud-oa-service-producer-1.0-SNAPSHOT.jar avocado-cloud-oa-service-producer-1.0-SNAPSHOT.jar
ADD ./conf/email-tpl-event-create.json conf/email-tpl-event-create.json
ADD ./conf/email-tpl-event-delete.json conf/email-tpl-event-delete.json
ADD ./conf/email-tpl-event-remind.json conf/email-tpl-event-remind.json
ADD ./conf/email-tpl-event-update.json conf/email-tpl-event-update.json

EXPOSE 9092
RUN echo "Asia/Shanghai" > /etc/timezone
CMD ["java","-jar","/srv/app/avocado-cloud-oa-service-producer-1.0-SNAPSHOT.jar"]
#sudo docker build -t='bewithmeallmylife/avocado-cloud-oa-service-producer:1.0.0' .
#sudo docker run --net=host --name avocado-cloud-oa-service-producer  --add-host your_host_name:127.0.0.1  -it  -d bewithmeallmylife/avocado-cloud-oa-service-producer:1.0.0
#you can use uname -a to show your host name